function OnInit(id)
    print("[lua] main OnInit id:"..id)

    -- local ping1 = sunnet.NewService("ping");
    -- local ping2 = sunnet.NewService("ping");
    -- local pong = sunnet.NewService("pong");
    -- sunnet.Send(ping1, pong, "1")
    -- sunnet.Send(ping2, pong, "1")
    -- sunnet.KillService(pong);

    -- local decode1= sunnet.NewService("decode");
    -- local decode2 = sunnet.NewService("decode");
    -- sunnet.Send(decode1, decode2, "start")
    sunnet.NewService("chat")
end

function OnExit()
    print("[lua] main OnExit")
end